
package com.perpus;

public class TestBuku {
    public static void main (String args[])
    {
        Buku test = new Buku();
        test.setIdKoleksi("Kom1001");
        test.setJudul("Pemrograman Berorientasi Obyek");
        System.out.println("Judul = "+test.getJudul());
        System.out.println("Terlambat = "+test.isTerlambat(7));
        System.out.println("Denda = "+test.hitungDenda(20));
        
        Majalah mjl = new Majalah();
        mjl.setIdKoleksi("Mjl1001");
        mjl.setJudul("Teknik Informatika");
        System.out.println("Judul = "+mjl.getJudul());
        System.out.println("Terlambat = "+mjl.isTerlambat(20));
        System.out.println("Denda = "+mjl.hitungDenda(20));
    }
}
